<?php
$browser = $_SERVER['HTTP_USER_AGENT'];
$type = 0;
switch(true){
    case strpos($browser,'Opera Mini') > -1:
    $type = 1;
    break;
    case strpos($browser,'iPhone') > -1:
    $type = 1;
    break;
    case strpos($browser,'iPod') > -1:
    $type = 1;
    break;
    case strpos($browser,'Android') > -1:
    $type = 1;
    break;
    case strpos($browser,'IEMobile') > -1:
    $type = 1;
    break;
    case strpos($browser,'Windows Phone') > -1:
    $type = 1;
    break;
}
$link_redirec = 'http://m.vnupdate.net'.$_SERVER['REQUEST_URI'];
if($type == 1) header('Location: '.$link_redirec.'');
require_once("../classes/database.php");
require_once("../functions/functions.php");
//require_once("../functions/news_functions.php");
require_once("../functions/date_functions.php");
require_once("../functions/rewrite_functions.php");
require_once("../includes/inc_config.php");
$generate_time = microtime_float();
ob_clean();
ob_start();
?>